package it.gma.torero.parsing.token;

import it.gma.torero.operand.Operand;
import it.gma.torero.operator.NotOperator;
import it.gma.torero.parsing.Tokenizer.MalformedException;
import it.gma.torero.parsing.Tokenizer.ReturnType;

public class Not extends UnaryOperator {

	Not(String sequence) {
		super(sequence);
	
	}

	

	@Override
	public ReturnType getOperandType() {
		return ReturnType.BOOLEAN;
	}

	@Override
	public ReturnType getReturnType() {
		return ReturnType.BOOLEAN;
	}
	
	
	@Override
	public Operand asOperand() throws MalformedException {
		return new NotOperator((Operand) getRightOperand().asOperand());
	}


}
